//
//  SXCollectionManager.h
//  ShiXun
//
//  Created by lanou on 15/11/2.
//  Copyright © 2015年 张琪. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FMDatabase.h"

typedef void (^finishCollection)(BOOL isSuccessed);

@interface SXCollectionManager : NSObject

// 收藏
+ (void)collectionDataWithTableName:(NSString *)tableName title:(NSString *)title urlID:(NSString *)urlID isCollection:(BOOL)isCollection finish:(finishCollection)finish;

// 查询是否收藏
+ (BOOL)checkCollectionWithTableName:(NSString *)tableName urlID:(NSString *)urlID;

// 查询某个表的全部数据
+ (NSArray *)checkCollectionWithTableName:(NSString *)tableName;


+ (void)collectionDataWithTableName:(NSString *)tableName dataName:(NSData *)dataName urlID:(NSString *)urlID isCollection:(BOOL)isCollection finish:(finishCollection)finish;

@end
